import request from '@/utils/request'

//增加文章
export function addArticle(data) {
    return request({
        url: 'Blog/article',
        method: 'post',
        data
    })
}
//获取文章列表
export function getList(data) {
    return request({
        url: 'Blog/getArticleList',
        method: 'post',
        data
    })
}
//获取单个文章
export function getAarticle(data) {
    return request({
        url: 'Blog/getOneArticle',
        method: 'post',
        data
    })
}
//删除文章，重复调用完全删除，有恢复功能
export function delArticle(data) {
    return request({
        url: 'Blog/delOneArticle',
        method: 'post',
        data
    })
}

export function getSkill(data) {
    return request({
        url: 'Blog/getSkill',
        method: 'post',
        data
    })
}

export function addSkill(data) {
    return request({
        url: 'Blog/addSkill',
        method: 'post',
        data
    })
}
export function setSkill(data) {
    return request({
        url: 'Blog/setSkill',
        method: 'post',
        data
    })
}
export function addmessage(data) {
    return request({
        url: 'Blog/addmessage',
        method: 'post',
        data
    })
}
export function getmessage(data) {
    return request({
        url: 'Blog/getmessage',
        method: 'post',
        data
    })
}
export function delmessage(data) {
    return request({
        url: 'Blog/delmessage',
        method: 'post',
        data
    })
}

/**
 * 关于页面
 */

export function GET_ABOUT() {
    return request({
        url: 'Blog/getabout',
        method: 'post',
    })
}

export function SET_ABOUT(data) {
    return request({
        url: 'Blog/setabout',
        method: 'post',
        data
    })
}

//访客列表
export function VISITOR_LIST(data) {
    return request({
        url: 'Blog/VISITOR_LIST',
        method: 'post',
        data
    })
}